package cn.me.sso.service;
import cn.me.sso.repository.OauthClientDetailsRepository;
import cn.me.sso.entity.OauthClientDetailsBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zchcpywin10
 */
@Service
public class OauthClientDetailServiceImpl {
  @Autowired
  private OauthClientDetailsRepository repository;
  public List<OauthClientDetailsBO> getList() {
    List<OauthClientDetailsBO> detailList = repository.findAll();
    if (!detailList.isEmpty()) {
      return detailList;
    }
    else {
      return null;
    }
  }
}
